<?php
include "../../config/ini.php";

$acceptFunctions = Array(	"getMeetingTypes",
							"newMeeting",
							"getMeetings",
							"newUserMeeting",
							"getMeetingsCalendar",
							"getSprints",
							"saveMeeting",
							"getMeetingSprints",
							"editMeeting",
							"deleteMeeting",
							"getUserMeeting",
							"saveUserMeeting"
						);

preg_match("(^[a-zA-Z]+$)",$_GET['f'],$match);

if(count($match) > 0)
	$nameFunction = $match[0];

if(in_array($nameFunction,$acceptFunctions)){
	parse_str($_SERVER['QUERY_STRING'], $obj);
	unset($obj["f"]);
	echo C_Meeting::$nameFunction($obj);
}else{
	echo "Erro!";
}
?>